<?php

class TestInRedirectController extends Abstraction\MvcController
{
    function createResult()
    {
        if( $this->action === 'foo' )
        {
            $request = new Core\MVCRequest();
            $request->uri = '/redir';
            $request->variables['redirVar'] = 4;
            
            return new Entity\InRedirect( $request );
        }
        
        $result = new Entity\MvcResult();
        $result->variables['nonRedirVar'] = 4;
        $result->variables['reqRedirVar'] = $this->redirVar;
        
        return $result;
        
    }
    
    function getVars()
    {
        return $this->variables;
    }
}
